<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
//    System.out.println("path >> " + path);
//    path = request.getRequestURI();
//    System.out.println("path >> " + path);
//    path = "/".equals(path) ? "" : path;
//    if (null != path && path.length() > 1)
//    {
//        if (path.indexOf("/") > -1) path = path.substring(0, path.lastIndexOf("/"));
//    }
//    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
//
//    String rp = request.getParameter("rp");
//    rp = null == rp ? "/WEB-INF/views" : rp;
//
//    basePath = basePath.replace(rp, "");
%>
<c:set var="basePath" value="<%=basePath%>" />